#ifndef CLIENT_H
#define CLIENT_H

#include "ui_MainWindow.h"
#include <QtGui/QMainWindow>
#include <QAbstractSocket>

class QTcpSocket;
class Player;


class MainWindow : public QWidget, private Ui::ClientGUI
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    QTcpSocket *tcpSocket;
    quint16 blockSize;
    QString nick;


private slots:
    void connectedToServer();
    void disconnectFromServer();
    void connectToServer(QString, int, QString);
    void sendData();
    void About();
    void Login();
    void Logout();
    void displayError(QAbstractSocket::SocketError socketError);
    void readData();

};



#endif
